import request from '@/utils/request'

// 查询答辩列表
export function listReply(query) {
  return request({
    url: '/reply/reply/list',
    method: 'get',
    params: query
  })
}

// 查询答辩详细
export function getReply(replyId) {
  return request({
    url: '/reply/reply/getReplyById/' + replyId,
    method: 'get'
  })
}

// 新增答辩
export function addReply(data) {
  return request({
    url: '/reply/reply/add',
    method: 'post',
    data: data
  })
}

// 修改答辩
export function updateReply(data) {
  return request({
    url: '/reply/reply/update',
    method: 'put',
    data: data
  })
}

// 删除答辩
export function delReply(replyId) {
  return request({
    url: '/reply/reply/delById/' + replyId,
    method: 'delete'
  })
}
